import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/lhl'
  },
  {
    path: '/lhl',
    name: 'lhl',
    component: () => import('../views/lhl.vue')
  },
  {
    path: '/yj',
    name: 'yj',
    component: () => import('../views/yj.vue')
  },
  {
    path: '/xh',
    name: 'xh',
    component: () => import('../views/xh.vue')
  },
  {
    path: '/cpp',
    name: 'cpp',
    component: () => import('../views/cpp.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
